package com.qst.rongxiaotong.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "expert",description = "专家")
@Table(name = "tb_expert")
public class Expert {

    private String userName;

    @NotBlank(message = "真实姓名不能为空")
    private String realName;

    @NotBlank(message = "手机号不能为空")
    private String phone;

    @NotBlank(message = "从事职业不能为空")
    private String profession;

    @NotBlank(message = "职位不能为空")
    private String position;

    @NotBlank(message = "所属单位不能为空")
    private String belong;
}
